Event.observe(window, 'load', init, false);

function init(){
	Event.observe('tag', 'blur', addTag, false);
}
function addPost(){
  	var url = 'index.php?module=conversations&type=user&func=preview_post_ajax&pageName=module';
	var pars = 'post='+escape($F('post'));
	var target = 'preview-post';
	var myAjax = new Ajax.Updater(target, url, {	method: 'post',	parameters: pars});
}
function addTag(){
  	var url = 'index.php?module=conversations&type=user&func=preview_tag_ajax&pageName=module';
	var pars = 'tag='+escape($F('tag'));
	var target = 'preview-tag';
	var myAjax = new Ajax.Updater(target, url, {	method: 'post',	parameters: pars});
}

onload = function getFocus(){
    var toFocus = document.getElementById('tag');
    toFocus.focus();
}
